/**
 * 
 */
package com.dovgopoly.carlogbook.web.login.client.presenter;

import com.dovgopoly.carlogbook.common.mvp.AbstractPresenter;
import com.dovgopoly.carlogbook.web.login.client.LoginEventBus;
import com.dovgopoly.carlogbook.web.login.client.view.RegistrationView;
import com.dovgopoly.carlogbook.web.login.client.view.RegistrationViewImpl;
import com.mvp4g.client.annotation.Presenter;

/**
 * @author e.dovgopoliy
 * 
 */
@Presenter(view = RegistrationViewImpl.class)
public class RegistrationPresenter extends
		AbstractPresenter<RegistrationView, RegistrationView.Presenter, LoginEventBus> implements
		RegistrationView.Presenter {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.dovgopoly.carlogbook.web.login.client.view.RegisterView.Presenter
	 * #showLogin()
	 */
	public void showLogin() {
		eventBus.start();

	}

	@Override
	protected RegistrationView.Presenter getPresenter() {
		return this;
	}

	public void onShowRegistrationForm() {
		view.show();
	}

}
